package com.ruoyi.system.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 科研项目对象 project_research
 * 
 * @author czj
 * @date 2025-01-06
 */
public class ProjectResearch extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long projectId;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String projectName;

    /** 项目类别 */
    @Excel(name = "项目类别")
    private Long categoryType;

    /** 发起人id */
    @Excel(name = "发起人id")
    private Long initiatorId;

    /** 项目立项日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "项目立项日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 项目目标 */
    @Excel(name = "项目目标")
    private String goal;

    /** 项目描述 */
    @Excel(name = "项目描述")
    private String description;

    /** 预计预算 */
    @Excel(name = "预计预算")
    private BigDecimal budget;

    /** 预期成果 */
    @Excel(name = "预期成果")
    private String expectedOutcome;

    /** 立项审批状态 */
    @Excel(name = "立项审批状态")
    private Long approvalStatus;

    /** 项目编号 */
    @Excel(name = "项目编号")
    private String projectCode;

    /** 审核人id */
    @Excel(name = "审核人id")
    private Long approverId;

    /** 审核意见或备注 */
    @Excel(name = "审核意见或备注")
    private String approvalComments;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updatedBy;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 删除人 */
    @Excel(name = "删除人")
    private String deletedBy;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deletedAt;

    /** 删除标记，0=未删除，1=已删除 */
    @Excel(name = "删除标记，0=未删除，1=已删除")
    private Integer isDeleted;

    /** 版本号 */
    @Excel(name = "版本号")
    private Long version;

    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setProjectName(String projectName) 
    {
        this.projectName = projectName;
    }

    public String getProjectName() 
    {
        return projectName;
    }
    public void setCategoryType(Long categoryType) 
    {
        this.categoryType = categoryType;
    }

    public Long getCategoryType() 
    {
        return categoryType;
    }
    public void setInitiatorId(Long initiatorId) 
    {
        this.initiatorId = initiatorId;
    }

    public Long getInitiatorId() 
    {
        return initiatorId;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setGoal(String goal) 
    {
        this.goal = goal;
    }

    public String getGoal() 
    {
        return goal;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setBudget(BigDecimal budget) 
    {
        this.budget = budget;
    }

    public BigDecimal getBudget() 
    {
        return budget;
    }
    public void setExpectedOutcome(String expectedOutcome) 
    {
        this.expectedOutcome = expectedOutcome;
    }

    public String getExpectedOutcome() 
    {
        return expectedOutcome;
    }
    public void setApprovalStatus(Long approvalStatus) 
    {
        this.approvalStatus = approvalStatus;
    }

    public Long getApprovalStatus() 
    {
        return approvalStatus;
    }
    public void setProjectCode(String projectCode) 
    {
        this.projectCode = projectCode;
    }

    public String getProjectCode() 
    {
        return projectCode;
    }
    public void setApproverId(Long approverId) 
    {
        this.approverId = approverId;
    }

    public Long getApproverId() 
    {
        return approverId;
    }
    public void setApprovalComments(String approvalComments) 
    {
        this.approvalComments = approvalComments;
    }

    public String getApprovalComments() 
    {
        return approvalComments;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setDeletedBy(String deletedBy) 
    {
        this.deletedBy = deletedBy;
    }

    public String getDeletedBy() 
    {
        return deletedBy;
    }
    public void setDeletedAt(Date deletedAt) 
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() 
    {
        return deletedAt;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("projectId", getProjectId())
            .append("projectName", getProjectName())
            .append("categoryType", getCategoryType())
            .append("initiatorId", getInitiatorId())
            .append("startDate", getStartDate())
            .append("goal", getGoal())
            .append("description", getDescription())
            .append("budget", getBudget())
            .append("expectedOutcome", getExpectedOutcome())
            .append("approvalStatus", getApprovalStatus())
            .append("projectCode", getProjectCode())
            .append("approverId", getApproverId())
            .append("approvalComments", getApprovalComments())
            .append("createdBy", getCreatedBy())
            .append("createdAt", getCreatedAt())
            .append("updatedBy", getUpdatedBy())
            .append("updatedAt", getUpdatedAt())
            .append("deletedBy", getDeletedBy())
            .append("deletedAt", getDeletedAt())
            .append("isDeleted", getIsDeleted())
            .append("version", getVersion())
            .toString();
    }
}
